package com.mygdx.game;



import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.utils.ScreenUtils;

public class MyGame extends ApplicationAdapter {
    SpriteBatch batch;

    @Override
    public void create () {
        batch = new SpriteBatch();
    }

    @Override
    public void render () {
        ScreenUtils.clear(0.2f, 0.2f, 0.3f, 1); // 设置一个深蓝色背景
        batch.begin();
        // 未来我们在这里绘制游戏内容
        batch.end();
    }

    @Override
    public void dispose () {
        batch.dispose();
    }
}

